<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
		<link rel="stylesheet" href="/index.css" />
	</head>
	<body>
        {{each content}}
		<form action="/editstu/{{$value._id}}" method="get" class="add">
			<label for="username"
				>姓名
				<input type="text" name="username" id="username" disabled value="{{$value.username}}" />
            </label>
            
			<label for="age"
				>年龄
				<input type="text" name="age" id="age" placeholder="请输入年龄" value="{{$value.age}}" />
			</label>
      <label for="sex">性别 

        <input type="radio" name="sex" id="man" value="男" 
        <% if ($value.sex=='男'){ %>
            checked
            <% }%>
        
        />男 
        <input type="radio" name="sex" id="woman" value="女" 
        <% if ($value.sex=='女'){ %>
            checked
            <% }%>
        />女 
      </label>
			<label for="zy"
				>专业
				<select name="zy" id="zy">
					<option <% if ($value.zy=='HTML5'){ %>
                        selected
                        <% }%>  value="HTML5" >HTML5 
                        </option>
                    <option 
                    <% if ($value.zy=='Javascript'){ %>
                        selected
                        <% }%>
                    value="Javascript">Javascript</option>
                    <option 
                    <% if ($value.zy=='CSS'){ %>
                        selected
                        <% }%>
                    value="CSS">CSS</option>
				</select>
			</label>
			<label>爱好 
                
                <input 
                <% if ($value.hobby.includes('运动')){ %>
                    checked
                    <% }%>
                type="checkbox" 
                name="hobby" 
                value="运动" />运动 
                <input 
                <% if ($value.hobby.includes('游戏')){ %>
                    checked
                    <% }%>
                type="checkbox" 
                name="hobby" 
                value="游戏" />游戏
                <input
                <% if ($value.hobby.includes('音乐')){ %>
                    checked
                    <% }%>
                type="checkbox" 
                name="hobby" 
                value="音乐" />音乐
               
			</label>
			<input type="submit" value="修改" />
        </form>
        {{/each}}
	</body>
</html>
